CC=gcc
CFLAGS=-I ../inc/ -I ../../libs/install/include/
LFLAGS=-L ../../libs/install/lib/ -lsqlite3
FILES=main.o socket.o get_time.o get_temp.o logger.o pack_data.o sqlite.o 

all:main
	rm -rf ${FILES} main *.log *.db 

main:${FILES}
	${CC} ${FILES} ${LFLAGS} -o ../main

%.o:%.c
	${CC} -c $< ${CFLAGS} -o $@


